<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
	<head>
		<title>井冈山智慧社区</title>
		<%@ include file="../common/Website-list.jsp"%>	
		<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="<%=bpath%>Scripts/metisMenu/metisMenu.css"/>
		<link rel="stylesheet" type="text/css" href="<%=bpath%>Scripts/metisMenu/metisFolder.css"/>		
		<script type="text/javascript" src="<%=bpath%>Scripts/metisMenu/metisMenu.js"></script>		
		<link rel="stylesheet" type="text/css" href="<%=bpath%>pages/WebSitePc/css/categoryMenu.css"/>
		<link rel="stylesheet" type="text/css" href="<%=bpath%>pages/WebSitePc/css/asynPage.css"/>	
				
		<script type="text/javascript" src="<%=bpath%>pages/WebSitePc/js/category.js"></script>	
		<script type="text/javascript" src="<%=bpath%>pages/WebSitePc/js/json2.js"></script>
		<script type="text/javascript" src="<%=bpath%>pages/WebSitePc/js/asynPage.js"></script>
		<%--<script type="text/javascript">
			$(function(){
				
				if('${data.parNav}'!=null && '${data.parNav}'!=''){					
					 $olda='#nav'+'${data.parNav}'; //选中导航
				}
				
				if('${data.artCategoryList}'!=null && ${data.artCategoryList.size()}>0){
					//获取最后--类目本身 
					var firstCate='${data.artCategoryList.get(data.artCategoryList.size()-1).id}';
					var firstName='${data.artCategoryList.get(data.artCategoryList.size()-1).name}';
					var firstUrl='${data.artCategoryList.get(data.artCategoryList.size()-1).url}';
					getArticleSL(firstCate,firstName,firstUrl);//获取短文章
					 
					var nowCat=firstCate;
					<c:if test="${(data.artCategoryList)!= null && fn:length(data.artCategoryList) > 2}">
						firstCate='${data.artCategoryList.get(1).id}';//获取第二级
						firstName='${data.artCategoryList.get(1).name}';
					</c:if>					            		            
		            getCategory(firstCate,firstName,nowCat);
		           
				}
				

				
			});
		</script>--%>
	</head>
<body>
	<!--Header Holder-->
	<jsp:include page="../WebSitePc/heads.jsp" />
	<!--main start-->	
	<div class="main">
		<div class="cate01">
			<div class="crumbs">
				您现在位置：<a href="<%=basePath%>" target="_self">首页</a> &gt;
				<c:if test= "${data.artCategoryList.size()>0}" >
                    <c:forEach items= "${data.artCategoryList}" var ="tf" varStatus = "st">                         	
                        <c:if test="${!st.last}">
     						<a href = "javascript:openCate('${tf.id}')" target = "_self" >${tf.name} </a >&gt;
     					</c:if>       
     					<c:if test="${st.last}">
     						<a href = "javascript:openCate('${tf.id}')" target = "_self">
     							<font color="#2c95b7">${tf.name}</font></a >
     					</c:if> 
                    </c:forEach >
                </c:if >
			</div>
			
			<div class="cebox">
      			<div class="boxLeft">
      				<aside class="sidebar">
			      		<nav class="sidebar-nav">
			        		<ul id="menu" class="metismenu">
			        			<!-- 左侧 树 菜单  -->
			        		</ul>
			      		</nav>
			    	</aside>
				</div>
				<!-- 右侧 -->
				<div class="boxRight">
					<!-- 右侧 科室介绍 -->				
					<c:if test= "${data.deptsIntroduce.size()>0}">
					<div class="rightCon1">
						<div class="lcon">
        					<div class="tit">
        					<h3><i class="fa fa-bars"></i>&nbsp;&nbsp;主要职责</h3></div>
        					<p>&#12288;&#12288; 
        					<c:choose>  
         						<c:when test="${fn:length(data.deptsIntroduce.get(0).duties) > 170}">  
             						<c:out value="${fn:substring(data.deptsIntroduce.get(0).duties, 0, 170)}..." />  
             						<a target="_blank" href="<%=basePath%>SiteIndex/depart.htm?id=${data.deptsIntroduce.get(0).id}">&#12288;&#12288;[详情]</a>
         						</c:when>  
        						<c:otherwise>  
           							<c:out value="${data.deptsIntroduce.get(0).duties}" />  
         						</c:otherwise>  
     						</c:choose> 
							</p>
        				</div>        				
        				<div class="rcon">
        					<div class="tit">
        					<h3><i class="fa fa-phone"></i>&nbsp;&nbsp;联系电话</h3></div>        					
							<% pageContext.setAttribute("enter", "\n");  %> 
        					<c:set var="string1" value="${data.deptsIntroduce.get(0).contact}"/>
							<c:set var="string2" value="${fn:replace(string1,enter,'<br>')}" />
							<p>${string2}</p>
        				</div>
					</div>
					</c:if>
					<!-- 右侧  类目 短列表 -->
					<div class="articleList">										
					</div>					
					<!-- 最后一级  类目 文章列表 分页 -->					
					<div class="pageList">
						<div class="articlePage"></div>
						<div id="paging" class="page"></div>				
				    </div>
				</div>		
			</div>		
		</div>	
			
		<script type="text/javascript">
			//通过类目 id  生成菜单	
			$(function () {    		
				$('#menu').metisMenu({doubleTapToGo: true });
			});
		</script>
		<div class="clear"> </div>			
	</div>
	<!--foot start-->
	<jsp:include page="../WebSitePc/footer.jsp" />	
</body>
</html>